package com.oracle.service;

import com.oracle.vo.Boy;
import com.oracle.vo.Girl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "register" )
public interface FeignRegisterService {

    @PostMapping(value = "/register/boy/3")
    public  void registerBoy(@RequestBody Boy boy);

    @PostMapping(value = "/register/girl/3")
    public void registerGirl(@RequestBody Girl girl);

    @PostMapping("/register/boy/2")
    public  Boy selectboy(@RequestBody Boy boy);

    @PostMapping("/register/girl/2")
    public  Girl selectgirl(@RequestBody Girl girl);

    @PostMapping("/register/boy/1")
    public  boolean selectBbloom(@RequestBody Boy boy);

    @PostMapping("/register/girl/1")
    public  boolean selectGbloom(@RequestBody Girl girl);

}
